package net;

public interface IDownloader {
	/**
	 * 
	 */
	public static final int SIZE_LISTENER = 512;

	/**
	 * 
	 */
	public static final int CONNECTING = 0;

	/**
	 * 
	 */
	public static final int CONNECTED = 1;

	/**
	 * 
	 */
	public static final int DOWNLOADING = 2;

	/**
	 * 
	 */
	public static final int CLOSED = 3;

	public static final int ERROR = 4;

	public static final int CANCELED = 5;

	public static final int TIMEDOUT = 6;
	public static final int DOWNLOADED = 7;

	/**
	 * @param url
	 * @param total
	 * @param elapsed
	 */
	public void DownloadChanged(String session, int status, String url, long total, long elapsed);
}
